# Contributor: Oliver Smith <ollieparanoid@postmarketos.org>
# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
pkgname=txt2tags
pkgver=3.7
pkgrel=3
pkgdesc="Text formatting and conversion tool"
url="https://www.txt2tags.org"
arch="noarch"
license="GPL-2.0-or-later"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-tox bash"
source="txt2tags-$pkgver.tar.gz::https://github.com/txt2tags/txt2tags/archive/3.7.tar.gz"

build() {
	python3 setup.py build
}

check() {
	tox --sitepackages -e py3
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="70f6b72b9555b881149e29581a200bf5195d740ca134fffb9faab3a8a04909173f40fe7758659bde44efa9aa50e9816e7164d8164f84b2046de500a49906072b  txt2tags-3.7.tar.gz"
